//
//  ZYDeviceItemView.h
//  YiLin
//
//  Created by Zyark on 2018/6/3.
//  Copyright © 2018年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZYDevice;
@class ZYDeviceItemView;
@protocol ZYDeviceItemViewDelegate <NSObject>
@optional
/**
 模式选择
 @param deviceItemView 当前view
 @param modeType 模式
 @param device 当前设备
 */
-(void)deviceItemView:(ZYDeviceItemView *)deviceItemView setModeType:(NSUInteger)modeType device:(ZYDevice *)device;

/**
 改变温度
 @param deviceItemView 当前view
 @param temperature 温度值
 @param device 当前设备
 */
-(void)deviceItemView:(ZYDeviceItemView *)deviceItemView changeTemperature:(int)temperature device:(ZYDevice *)device;

/**
 是否正在改变温度
 @param deviceItemView 当前view
 @param isChange 是否改变
 */
-(void)deviceItemView:(ZYDeviceItemView *)deviceItemView isChangeTemperature:(BOOL)isChange;
@end
@interface ZYDeviceItemView : UIView
@property(nonatomic,strong) ZYDevice *device;
@property(nonatomic,weak) id<ZYDeviceItemViewDelegate> delegate;
-(void)setScrollStatus:(BOOL)isScroll;
-(void)setupTitle;
-(void)setIsLock:(BOOL)isLock;
-(void)setIsOpen:(BOOL)isOpen;
@end
